<%@ page language="java" import="org.whuims.pois.action.result.DataVo, org.whuims.pois.dao.NewsDao, java.util.List"
         pageEncoding="utf8" %>
<%@ page import="org.whuims.pois.dao.StarDao" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!-- 输出我的关注 -->
<%
    String userName = (String) session.getAttribute("userName");
    Long topicId = (Long) session.getAttribute("topicId");
    List<DataVo> star = new StarDao().list(1,7,userName,topicId);
    request.setAttribute("star", star);
%>
<div style="margin: 4px;">
    <logic:iterate id="newest" name="star">
        <p>
            <html:link page="/logAction.do" paramId="link" paramName="newest"
                       paramProperty="link" target="_blank">
                <logic:notEqual name="newest" property="title" value="">
                    <bean:write name="newest" property="title" filter="true"/>
                </logic:notEqual>
                <logic:equal name="newest" property="title" value="">暂无标题</logic:equal>
            </html:link>
        </p>
    </logic:iterate>
</div>